import fetchApi from "@/utils/request"
export default {
    //附件列表
    fileList(params) {
        return fetchApi("/api/v1/admin/common/files", "GET", params)
    },
    //上传文件
    uploadFile(params) {
        return fetchApi("/api/v1/admin/common/files", "POST", params)
    },
    //删除文件
    deleteFile() {
        return fetchApi(`/api/v1/admin/common/files/${id}`, "DELETE", {})
    }
}
